﻿@model DeJC.DAL.Model.GeneralMiscType
@{
    ViewBag.Title = "CreateParent";
    Layout = "~/Views/Shared/_LayoutRegistered.cshtml";
}

<h2>CreateParent</h2>
@*
ParentID=0
CreatedBy=CurrentUserID
Name
Description
Enabled=True
Order
CreationDate=DateTime.Now
Deleted=False
*@
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    <fieldset>
        <div class="form-style">
            <ul>
                <li>
                    <span>Nombre</span>
                    @Html.EditorFor(m => m.Name)
                    @Html.ValidationMessageFor(model => model.Name)
                </li>
                <li>
                    <span>Descripción</span>
                    @Html.EditorFor(m => m.Description)
                    @Html.ValidationMessageFor(model => model.Description)
                </li>
                <li>
                    <span>Orden</span>
                    @Html.EditorFor(m => m.Order)
                    @Html.ValidationMessageFor(model => model.Order)
                </li>
            </ul>
            <hr/>
        </div>   
        <p>
            <input type="submit" value="Agregar"/> @Html.ActionLink("Cancelar","Index")
        </p> 
    </fieldset>
}